html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%
}

ul, ol {
    -webkit-margin-before: 0;
    -webkit-margin-after: 0;
    -webkit-margin-start: 0;
    -webkit-margin-end: 0;
    -webkit-padding-before: 0;
    -webkit-padding-after: 0;
    -webkit-padding-start: 0;
    -webkit-padding-end: 0
}

body * {
    -webkit-text-size-adjust: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0)
}

.navbar {
    -webkit-box-sizing: border-box;
    position: relative;
    width: 100%;
    z-index: 99;
    top: 0;
    left: 0
}

.navbar > ul {
    position: relative;
    width: 100%;
    height: 100%;
    background: 0
}

.navbar > ul.forward {
    -webkit-transform: translate(50px, 0);
    opacity: 0
}

.navbar > ul.backward {
    -webkit-transform: translate(-50px, 0);
    opacity: 0
}

.navbar > ul.transition {
    -webkit-transition: .4s ease;
    -webkit-transition-property: -webkit-transform opacity;
    -webkit-transform: translate(0, 0);
    opacity: 1
}

.navbar:after {
    display: block;
    content: ' ';
    clear: both;
    visibility: hidden
}

.navbar > ul > li {
    position: absolute;
    height: 100%;
    display: -webkit-box;
    -webkit-box-pack: center;
    -webkit-box-align: center
}

.navbar > ul > li:first-child {
    width: 100%
}

.navbar > ul > li:nth-child(2) {
    left: 0;
    top: 0;
    padding: 0 10px
}

.navbar > ul > li:last-child {
    right: 0;
    top: 0;
    padding: 0 10px
}

.navbar a {
    top: 0;
    display: inline-block;
    text-align: center;
    position: relative;
    padding: 0 5px;
    margin: 2px
}

.toolbar {
    position: relative;
    z-index: 99
}

.viewport {
    width: 100%;
    min-height: 100%
}

.viewport > .navbar {
    display: none
}

.viewport > .content {
    overflow: auto;
    width: auto;
    height: auto
}

.viewport > .toolbar {
    display: none
}

.viewport > .content > .wrap, .viewport > .content > .wrap > .active, .viewport > .content > .wrap > .inactive {
    width: 100%;
    min-height: 100%
}

.viewport > .content > .wrap > .active {
    display: block
}

.viewport > .content > .wrap > .inactive {
    display: none
}

.viewport > .content > .trans {
    display: none;
    background: transparent;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    overflow: hidden;
    z-index: 9999
}

.viewport > .content > .trans > div {
    position: absolute;
    width: 100%;
    height: 100%
}

.viewport.enableNavbar > .navbar {
    display: block
}

.viewport.enableToolbar > .toolbar {
    display: block
}

.viewport.enableScroll, .viewport.enableScroll > .content, .viewport.enableScroll > .content > .wrap {
    position: relative;
    overflow-y: hidden;
    height: 100%
}

.viewport.enableTransition, .viewport.enableTransition > .content, .viewport.enableTransition > .content > .wrap {
    position: relative;
    overflow-x: hidden;
    width: 100%
}

.navbar {
    height: 44px;
    background: -webkit-gradient(linear, left top, left bottom, from(#becbdd), to(#587397));
    background-size: contain;
    border-top: solid 1px #fff;
    border-bottom: solid 1px #3f5c80;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 -1px 1px rgba(0, 0, 0, .4);
    -webkit-box-shadow: 0 1.5px .5px rgba(0, 0, 0, .3)
}

.navbar a {
    height: 28px;
    line-height: 28px;
    background: url() repeat-x 0 0;
    background-size: contain;
    color: #fff;
    text-shadow: 0 -1px 1px rgba(0, 0, 0, .4);
    font-size: 13px;
    font-weight: 700;
    border-top: solid 1px #343a42;
    border-bottom: solid 1px #2f4769;
    border-left: solid 1px #515f70;
    border-right: solid 1px #515f70;
    border-radius: 4.5px;
    -webkit-box-shadow: 0 .5px 1px rgba(255, 255, 255, .5), inset 0 .5px 1px rgba(0, 0, 0, .2)
}

.navbar a.back {
    margin: 0 0 0 14px
}

.navbar a.back:after {
    content: "";
    display: block;
    position: absolute;
    margin-top: 0;
    margin-bottom: 0;
    width: 14px;
    height: 30px;
    left: -11px;
    top: -1px;
    background: url() no-repeat 0 0;
    background-size: contain
}

.viewport > .content > .wrap {
    background: url() repeat 0 0
}

.viewport > .content > .wrap .active {
    background: #fff
}

.viewport > .content > .trans > div {
    background-color: #FFF
}